import requests

url = "https://testpassport.rabbitpre.com/api/sso/login"
params = {"account":"***********","password":"******","fromType":"pc"}

session = requests.session()
response = session.post(url, json=params)
if response.json().get('code') == '200' and response.json().get("errorCode") == "SUCCESS":
     print('登录成功')
else:
    print('登录失败')